package it.unibo.progetto.unit;

import static org.junit.Assert.*;
import it.unibo.progetto.domain.IDashboard;
import it.unibo.progetto.domain.ILocation;

import org.junit.Test;

public class IDashboardTestCase 
{
	protected IDashboard dashboard = null; // TODO Da istanziare
	
	@Test
	public void invariant()
	{
		float distance = 3.0f;
		dashboard.updateDistanceCovered(distance);
		assertEquals(distance, dashboard.getDisplayedDistanceCovered(), 0);
		
		float speed = 5.0f;
		dashboard.updateCurrentSpeed(speed);
		assertEquals(speed, dashboard.getDisplayedSpeed(), 0);
		
		ILocation[] locations = null;
		dashboard.updateMap(locations);
		assertArrayEquals(locations, dashboard.getDisplayedLocations());
	}
}
